public class Test {

    public static void main(String[] args) {
        Dog dog=new Dog();

    }
}

class Animal{

    public void func(){
        System.out.println("动物");
    }

    public Animal(){
        func();
    }


}


class Dog extends Person {

    int num=999;
    public void func(){
        System.out.println("狗");
        System.out.println(num);
    }


}